package com.example.demo.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UserFeedbackInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserFeedbackInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria and_IdIsNull() {
            addCriterion("_Id is null");
            return (Criteria) this;
        }

        public Criteria and_IdIsNotNull() {
            addCriterion("_Id is not null");
            return (Criteria) this;
        }

        public Criteria and_IdEqualTo(Integer value) {
            addCriterion("_Id =", value, "_Id");
            return (Criteria) this;
        }

        public Criteria and_IdNotEqualTo(Integer value) {
            addCriterion("_Id <>", value, "_Id");
            return (Criteria) this;
        }

        public Criteria and_IdGreaterThan(Integer value) {
            addCriterion("_Id >", value, "_Id");
            return (Criteria) this;
        }

        public Criteria and_IdGreaterThanOrEqualTo(Integer value) {
            addCriterion("_Id >=", value, "_Id");
            return (Criteria) this;
        }

        public Criteria and_IdLessThan(Integer value) {
            addCriterion("_Id <", value, "_Id");
            return (Criteria) this;
        }

        public Criteria and_IdLessThanOrEqualTo(Integer value) {
            addCriterion("_Id <=", value, "_Id");
            return (Criteria) this;
        }

        public Criteria and_IdIn(List<Integer> values) {
            addCriterion("_Id in", values, "_Id");
            return (Criteria) this;
        }

        public Criteria and_IdNotIn(List<Integer> values) {
            addCriterion("_Id not in", values, "_Id");
            return (Criteria) this;
        }

        public Criteria and_IdBetween(Integer value1, Integer value2) {
            addCriterion("_Id between", value1, value2, "_Id");
            return (Criteria) this;
        }

        public Criteria and_IdNotBetween(Integer value1, Integer value2) {
            addCriterion("_Id not between", value1, value2, "_Id");
            return (Criteria) this;
        }

        public Criteria andUser_idIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUser_idIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUser_idEqualTo(String value) {
            addCriterion("user_id =", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idNotEqualTo(String value) {
            addCriterion("user_id <>", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idGreaterThan(String value) {
            addCriterion("user_id >", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idGreaterThanOrEqualTo(String value) {
            addCriterion("user_id >=", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idLessThan(String value) {
            addCriterion("user_id <", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idLessThanOrEqualTo(String value) {
            addCriterion("user_id <=", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idLike(String value) {
            addCriterion("user_id like", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idNotLike(String value) {
            addCriterion("user_id not like", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idIn(List<String> values) {
            addCriterion("user_id in", values, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idNotIn(List<String> values) {
            addCriterion("user_id not in", values, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idBetween(String value1, String value2) {
            addCriterion("user_id between", value1, value2, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idNotBetween(String value1, String value2) {
            addCriterion("user_id not between", value1, value2, "user_id");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoIsNull() {
            addCriterion("feedback_info is null");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoIsNotNull() {
            addCriterion("feedback_info is not null");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoEqualTo(String value) {
            addCriterion("feedback_info =", value, "feedback_info");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoNotEqualTo(String value) {
            addCriterion("feedback_info <>", value, "feedback_info");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoGreaterThan(String value) {
            addCriterion("feedback_info >", value, "feedback_info");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoGreaterThanOrEqualTo(String value) {
            addCriterion("feedback_info >=", value, "feedback_info");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoLessThan(String value) {
            addCriterion("feedback_info <", value, "feedback_info");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoLessThanOrEqualTo(String value) {
            addCriterion("feedback_info <=", value, "feedback_info");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoLike(String value) {
            addCriterion("feedback_info like", value, "feedback_info");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoNotLike(String value) {
            addCriterion("feedback_info not like", value, "feedback_info");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoIn(List<String> values) {
            addCriterion("feedback_info in", values, "feedback_info");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoNotIn(List<String> values) {
            addCriterion("feedback_info not in", values, "feedback_info");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoBetween(String value1, String value2) {
            addCriterion("feedback_info between", value1, value2, "feedback_info");
            return (Criteria) this;
        }

        public Criteria andFeedback_infoNotBetween(String value1, String value2) {
            addCriterion("feedback_info not between", value1, value2, "feedback_info");
            return (Criteria) this;
        }

        public Criteria andFeedback_timeIsNull() {
            addCriterion("feedback_time is null");
            return (Criteria) this;
        }

        public Criteria andFeedback_timeIsNotNull() {
            addCriterion("feedback_time is not null");
            return (Criteria) this;
        }

        public Criteria andFeedback_timeEqualTo(Date value) {
            addCriterion("feedback_time =", value, "feedback_time");
            return (Criteria) this;
        }

        public Criteria andFeedback_timeNotEqualTo(Date value) {
            addCriterion("feedback_time <>", value, "feedback_time");
            return (Criteria) this;
        }

        public Criteria andFeedback_timeGreaterThan(Date value) {
            addCriterion("feedback_time >", value, "feedback_time");
            return (Criteria) this;
        }

        public Criteria andFeedback_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("feedback_time >=", value, "feedback_time");
            return (Criteria) this;
        }

        public Criteria andFeedback_timeLessThan(Date value) {
            addCriterion("feedback_time <", value, "feedback_time");
            return (Criteria) this;
        }

        public Criteria andFeedback_timeLessThanOrEqualTo(Date value) {
            addCriterion("feedback_time <=", value, "feedback_time");
            return (Criteria) this;
        }

        public Criteria andFeedback_timeIn(List<Date> values) {
            addCriterion("feedback_time in", values, "feedback_time");
            return (Criteria) this;
        }

        public Criteria andFeedback_timeNotIn(List<Date> values) {
            addCriterion("feedback_time not in", values, "feedback_time");
            return (Criteria) this;
        }

        public Criteria andFeedback_timeBetween(Date value1, Date value2) {
            addCriterion("feedback_time between", value1, value2, "feedback_time");
            return (Criteria) this;
        }

        public Criteria andFeedback_timeNotBetween(Date value1, Date value2) {
            addCriterion("feedback_time not between", value1, value2, "feedback_time");
            return (Criteria) this;
        }

        public Criteria andIs_viewedIsNull() {
            addCriterion("is_viewed is null");
            return (Criteria) this;
        }

        public Criteria andIs_viewedIsNotNull() {
            addCriterion("is_viewed is not null");
            return (Criteria) this;
        }

        public Criteria andIs_viewedEqualTo(Integer value) {
            addCriterion("is_viewed =", value, "is_viewed");
            return (Criteria) this;
        }

        public Criteria andIs_viewedNotEqualTo(Integer value) {
            addCriterion("is_viewed <>", value, "is_viewed");
            return (Criteria) this;
        }

        public Criteria andIs_viewedGreaterThan(Integer value) {
            addCriterion("is_viewed >", value, "is_viewed");
            return (Criteria) this;
        }

        public Criteria andIs_viewedGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_viewed >=", value, "is_viewed");
            return (Criteria) this;
        }

        public Criteria andIs_viewedLessThan(Integer value) {
            addCriterion("is_viewed <", value, "is_viewed");
            return (Criteria) this;
        }

        public Criteria andIs_viewedLessThanOrEqualTo(Integer value) {
            addCriterion("is_viewed <=", value, "is_viewed");
            return (Criteria) this;
        }

        public Criteria andIs_viewedIn(List<Integer> values) {
            addCriterion("is_viewed in", values, "is_viewed");
            return (Criteria) this;
        }

        public Criteria andIs_viewedNotIn(List<Integer> values) {
            addCriterion("is_viewed not in", values, "is_viewed");
            return (Criteria) this;
        }

        public Criteria andIs_viewedBetween(Integer value1, Integer value2) {
            addCriterion("is_viewed between", value1, value2, "is_viewed");
            return (Criteria) this;
        }

        public Criteria andIs_viewedNotBetween(Integer value1, Integer value2) {
            addCriterion("is_viewed not between", value1, value2, "is_viewed");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}